package com.jalarbee.stock.product.business;

import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;

@Entity
public class PackagedProduct extends Product {

    private static final long serialVersionUID = 1L;
    
    @org.hibernate.annotations.CollectionOfElements
    @JoinTable(name = "PRODUCT_ITEM",
    joinColumns =@JoinColumn(name = "PACKAGED_PRODUCT_ID"))
    private Set<ProductItem> items;

    public Set<ProductItem> getItems() {
        return items;
    }

    public void setItems(Set<ProductItem> items) {
        this.items = items;
    }
}
